#!/usr/bin/python
#-*-coding:utf-8-*-

class file:

    def __init__(self , path = 'thread/'):
        self.path = path

    def create(self,filename = None , string = None):
        f = open(self.path+filename, 'w')
        f.write(string)
        f.close()

    def read(self,filename = None):
        f = open(self.path+filename , 'r')
        str = f.read()
        f.close()
        return str
